package chainofResp;

public class Test {
	public static void main(String[] args) {
		GroupLeader gl = new GroupLeader();
		ProjectManager pm = new ProjectManager();
		DepartmentManager dm = new DepartmentManager();
		//建立责任链
		gl.setHandler(pm);
		pm.setHandler(dm);
		
		//向小组长发出申请，请求审批4天的假期
		gl.approve(2d);
	}
}
